<?php
	//authorized access check

	if (isset($_SESSION["log"]) && isset($_SESSION["pass"]))
	{		
    $status = "none";				
    if (strcmp($_SESSION["log"], ADMIN_LOGIN)==0 && 
        strcmp($_SESSION["pass"], ADMIN_PASS)==0)
    {			
        $status = "admin";		
    }		
    					
    if ($status == "none")
    {			
      unset($_SESSION["log"]);			
      unset($_SESSION["pass"]);		
    }				
    $_SESSION["user_status"] = $status;
	}

?>